On the Exact Complexity of String Matching (Extended Abstract)

نویسندگان

  • Livio Colussi
  • Zvi Galil
  • Raffaele Giancarlo
چکیده

of Results We investigate the maximal number of character comparisons made by a linear-time string matching algorithm, given a text of length n and a pattern of length m over a general alphabet. We denote it by c(n,m) or approximate it by (1 + C)n, where C is a universal constant. We add the subscript “on-line” when we restrict attention to on-line algorithms and the superscript “1” when we consider algorithms that find only one occurrence of the pattern in the text. It is well known that n 5 c(n, m) 5 2n m + 1 or 0 5 C 5 1. The upper bound was established 20 years ago [16, 181 and no progress has been made for 19 years. The only lower bound has been the obvious one, c(n,m) 2 n. We improve these bounds and determine Con-line exactly. The bounds below contain the period size z of the pattern.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

String Range Matching

Given strings X and Y the exact string matching problem is to find the occurrences of Y as a substring of X. An alternative formulation asks for the lexicographically consecutive set of suffixes of X that begin with Y. We introduce a generalization called string range matching where we want to find the suffixes of X that are in an arbitrary lexicographical range bounded by two strings Y and Z. ...

متن کامل

Bit-Parallel Operations to Investigate Properties of Logical Vectors by Logical Operations

In this paper, we discuss five problems which can be solved by using bit-parallel approach in constant time. And, these five problems often occur in many problems such as exact string matching problems and approximation string matching problems. According to the approaches for these five problems, we can solve exact string matching problems and approximation string matching problems more effici...

متن کامل

Towards Faster String Matching

Aalto University, P.O. Box 11000, FI-00076 Aalto www.aalto.fi Author Hannu Peltola Name of the doctoral dissertation Towards Faster String Matching Publisher Aalto University School of Science Unit Department of Computer Science Series Aalto University publication series DOCTORAL DISSERTATIONS 78/2013 Field of research Software Technology Manuscript submitted 11 December 2012 Date of the defenc...

متن کامل

Parameterized matching on non-linear structures

The classical pattern matching paradigm is that of seeking occurrences of one string in another, where both strings are drawn from an alphabet set Σ. In the parameterized pattern matching model, a consistent renaming of symbols from Σ is allowed in a match. The parameterized matching paradigm has proven useful in problems in software engineering, computer vision, and other applications. In clas...

متن کامل

Improved Approach for Exact Pattern Matching

In this research we present Bidirectional exact pattern matching algorithm [20] in detail. Bidirectional (BD) exact pattern matching (EPM) introduced a new idea to compare pattern with Selected Text Window (STW) of text string by using two pointers (right and left) simultaneously in searching phase. In preprocessing phase Bidirectional EPM algorithm improved the shift decision by comparing righ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1990